package com.example.loop;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import springfox.documentation.oas.annotations.EnableOpenApi;


@EnableWebMvc
@EnableOpenApi  // 开启Swaager文档
//@EnableScheduling
@SpringBootApplication
@MapperScan("com.example.loop.mapper")
public class LoopApplication {

    public static void main(String[] args) {
        SpringApplication.run(LoopApplication.class, args);
    }


//    @Bean
//    public SqlSessionFactory mybatisSqlSessionFactoryBean() {
//
//        MybatisSqlSessionFactoryBuilder mybatisSqlSessionFactoryBuilder = new MybatisSqlSessionFactoryBuilder();
//
//
//        Configuration configuration = new Configuration();
//        return mybatisSqlSessionFactoryBuilder.build(configuration);
//    }

}
